package com.antaohua.platfrom.framework.base.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

import com.antaohua.platfrom.framework.base.interfase.CreateDateInterfase;
import com.antaohua.platfrom.framework.base.interfase.DeleteStateInterfase;
import com.antaohua.platfrom.framework.base.interfase.UpdateDateInterfase;
@MappedSuperclass
public class BaseModel extends UUIDIdentityModel implements Serializable, DeleteStateInterfase, CreateDateInterfase, UpdateDateInterfase {

	private static final long serialVersionUID = 3084723921178145588L;
	@Column(name = "CREATEDATE", nullable = false)
	private Date createDate;
	@Column(name = "UPDATEDATE")
	private Date updateDate;
	@Column(name = "DELETEDSTATE", nullable = false)
	private Integer deletedState;

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getUpdateDate() {
		return this.updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public Integer getDeletedState() {
		return this.deletedState;
	}

	public void setDeletedState(Integer deletedState) {
		this.deletedState = deletedState;
	}
}
